babl: improve log output on Android.
authorJehan <jehan@girinstud.io>
Wed, 5 Jul 2017 00:15:27 +0000 (02:15 +0200)
committerJehan <jehan@girinstud.io>
Sat, 16 Sep 2017 09:56:05 +0000 (11:56 +0200)
No need to log end of lines. This is not like a printf where we are
trying to pretty-print.

babl/babl-internal.h

index 24ad347885a318e561cb2924e25270b027e72604..efa593c4009d0b1e0d5bb9463025ce44b2f9f42e 100644 (file)
@@ -62,7 +62,6 @@
 #include <android/log.h>
 #endif
 
-
 Babl *   babl_conversion_find           (const void     *source,
                                          const void     *destination);
 double   babl_conversion_error          (BablConversion *conversion);
@@ -137,7 +136,7 @@ real_babl_log_va(const char *file,
 
 #ifdef __ANDROID_API__
       __android_log_print (ANDROID_LOG_DEBUG, "BABL",
-                           "%s:%i %s()\n\t", file, line, function);
+                           "%s:%i %s()", file, line, function);
 #else
       fprintf (stdout, "%s:%i %s()\n\t", file, line, function);
 #endif
@@ -146,10 +145,8 @@ real_babl_log_va(const char *file,
 #ifdef __ANDROID_API__
   __android_log_vprint (ANDROID_LOG_DEBUG, "BABL",
                         fmt, varg);
-  __android_log_write (ANDROID_LOG_DEBUG, "BABL", "\n");
 #else
   vfprintf (stdout, fmt, varg);
-
   fprintf (stdout, "\n");
   fflush (NULL);
 #endif